<?php

// [ 应用入口文件 ]
namespace think;

require __DIR__ . '/../vendor/autoload.php';

//  检测开发环境
$env = 'develop';
if (gethostbyname($_SERVER['HTTP_HOST']) != '127.0.0.1') $env = 'production';
// 执行HTTP应用并响应
$http = (new App())->setEnvName($env)->http;

$response = $http->name('index')->run();

$response->send();

$http->end($response);
